package cn.may.exception;

import cn.may.enums.ResultEnum;
import lombok.Data;

/**
 * @author mayuanbao
 * @date 2019-06-04 20:57
 */
public class StudentException extends RuntimeException {
    private Integer code;
    public StudentException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
